<?php
/*
	订单收货
*/
defined('BY_JYA') or exit('error');
list($order_id)=$arguments;
//修改订单状态
$this->update('order',array('status'=>'3'),array('id'=>$order_id));
//修改订单佣金状态
$ordersn=$this->getcolumn('order',array('id'=>$order_id),'ordersn');
$commission_setting=$this->plugin_setting('commission');
if($commission_setting['check_commission']){
	$this->update('commission',array('status'=>2),array('ordersn'=>$ordersn));
}else{
	$this->update('commission',array('status'=>1),array('ordersn'=>$ordersn));
}
